import Layout from '@/layout'

const systemPermissionRouter = {
  path: '/1',
  component: Layout,
  redirect: '/dashboard1',
  name: '系统权限',
  alwaysShow: true,
  meta: {
    title: '系统权限',
    icon: 'el-icon-key',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/sytsem-permission/user'),
      name: '用户管理',
      meta: { title: '用户管理', icon: 'el-icon-user', affix: true }
    },
    {
      path: 'role',
      component: () => import('@/views/sytsem-permission/role'),
      name: '角色管理',
      meta: { title: '角色管理', icon: 'people', affix: true }
    },
    {
      path: 'organization',
      component: () => import('@/views/sytsem-permission/organization'),
      name: '部门管理',
      meta: { title: '部门管理', icon: 'el-icon-s-fold', affix: true }
    },
    {
      path: 'position',
      component: () => import('@/views/sytsem-permission/position'),
      name: '岗位管理',
      meta: { title: '岗位管理', icon: 'peoples', affix: true }
    },
    {
      path: 'dashboard888',
      component: () => import('@/views/dashboard/index'),
      name: '菜单管理',
      meta: { title: '菜单管理', icon: 'el-icon-menu', affix: true }
    }
  ]
}
export default systemPermissionRouter
